Optimal. Leaf size=187 \[ -\frac{b (13 a-15 b) \sec (e+f x)}{8 a^3 f \sqrt{a+b \sec ^2(e+f x)-b}}-\frac{3 (a-5 b) (a-b) \tanh ^{-1}\left (\frac{\sqrt{a} \sec (e+f x)}{\sqrt{a+b \sec ^2(e+f x)-b}}\right )}{8 a^{7/2} f}-\frac{5 (a-b) \cot (e+f x) \csc (e+f x)}{8 a^2 f \sqrt{a+b \sec ^2(e+f x)-b}}-\frac{\cot ^3(e+f x) \csc (e+f x)}{4 a f \sqrt{a+b \sec ^2(e+f x)-b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.236033, antiderivative size = 187, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.24, Rules used = {3664, 470, 527, 12, 377, 207} \[ -\frac{b (13 a-15 b) \sec (e+f x)}{8 a^3 f \sqrt{a+b \sec ^2(e+f x)-b}}-\frac{3 (a-5 b) (a-b) \tanh ^{-1}\left (\frac{\sqrt{a} \sec (e+f x)}{\sqrt{a+b \sec ^2(e+f x)-b}}\right )}{8 a^{7/2} f}-\frac{5 (a-b) \cot (e+f x) \csc (e+f x)}{8 a^2 f \sqrt{a+b \sec ^2(e+f x)-b}}-\frac{\cot ^3(e+f x) \csc (e+f x)}{4 a f \sqrt{a+b \sec ^2(e+f x)-b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3664
Rule 470
Rule 527
Rule 12
Rule 377
Rule 207
Rubi steps
\begin{align*} \int \frac{\csc ^5(e+f x)}{\left (a+b \tan ^2(e+f x)\right )^{3/2}} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{x^4}{\left (-1+x^2\right )^3 \left (a-b+b x^2\right )^{3/2}} \, dx,x,\sec (e+f x)\right )}{f}\\ &=-\frac{\cot ^3(e+f x) \csc (e+f x)}{4 a f \sqrt{a-b+b \sec ^2(e+f x)}}-\frac{\operatorname{Subst}\left (\int \frac{-a+b-4 (a-b) x^2}{\left (-1+x^2\right )^2 \left (a-b+b x^2\right )^{3/2}} \, dx,x,\sec (e+f x)\right )}{4 a f}\\ &=-\frac{5 (a-b) \cot (e+f x) \csc (e+f x)}{8 a^2 f \sqrt{a-b+b \sec ^2(e+f x)}}-\frac{\cot ^3(e+f x) \csc (e+f x)}{4 a f \sqrt{a-b+b \sec ^2(e+f x)}}-\frac{\operatorname{Subst}\left (\int \frac{-(3 a-5 b) (a-b)+10 (a-b) b x^2}{\left (-1+x^2\right ) \left (a-b+b x^2\right )^{3/2}} \, dx,x,\sec (e+f x)\right )}{8 a^2 f}\\ &=-\frac{5 (a-b) \cot (e+f x) \csc (e+f x)}{8 a^2 f \sqrt{a-b+b \sec ^2(e+f x)}}-\frac{\cot ^3(e+f x) \csc (e+f x)}{4 a f \sqrt{a-b+b \sec ^2(e+f x)}}-\frac{(13 a-15 b) b \sec (e+f x)}{8 a^3 f \sqrt{a-b+b \sec ^2(e+f x)}}-\frac{\operatorname{Subst}\left (\int -\frac{3 (a-5 b) (a-b)^2}{\left (-1+x^2\right ) \sqrt{a-b+b x^2}} \, dx,x,\sec (e+f x)\right )}{8 a^3 (a-b) f}\\ &=-\frac{5 (a-b) \cot (e+f x) \csc (e+f x)}{8 a^2 f \sqrt{a-b+b \sec ^2(e+f x)}}-\frac{\cot ^3(e+f x) \csc (e+f x)}{4 a f \sqrt{a-b+b \sec ^2(e+f x)}}-\frac{(13 a-15 b) b \sec (e+f x)}{8 a^3 f \sqrt{a-b+b \sec ^2(e+f x)}}+\frac{(3 (a-5 b) (a-b)) \operatorname{Subst}\left (\int \frac{1}{\left (-1+x^2\right ) \sqrt{a-b+b x^2}} \, dx,x,\sec (e+f x)\right )}{8 a^3 f}\\ &=-\frac{5 (a-b) \cot (e+f x) \csc (e+f x)}{8 a^2 f \sqrt{a-b+b \sec ^2(e+f x)}}-\frac{\cot ^3(e+f x) \csc (e+f x)}{4 a f \sqrt{a-b+b \sec ^2(e+f x)}}-\frac{(13 a-15 b) b \sec (e+f x)}{8 a^3 f \sqrt{a-b+b \sec ^2(e+f x)}}+\frac{(3 (a-5 b) (a-b)) \operatorname{Subst}\left (\int \frac{1}{-1+a x^2} \, dx,x,\frac{\sec (e+f x)}{\sqrt{a-b+b \sec ^2(e+f x)}}\right )}{8 a^3 f}\\ &=-\frac{3 (a-5 b) (a-b) \tanh ^{-1}\left (\frac{\sqrt{a} \sec (e+f x)}{\sqrt{a-b+b \sec ^2(e+f x)}}\right )}{8 a^{7/2} f}-\frac{5 (a-b) \cot (e+f x) \csc (e+f x)}{8 a^2 f \sqrt{a-b+b \sec ^2(e+f x)}}-\frac{\cot ^3(e+f x) \csc (e+f x)}{4 a f \sqrt{a-b+b \sec ^2(e+f x)}}-\frac{(13 a-15 b) b \sec (e+f x)}{8 a^3 f \sqrt{a-b+b \sec ^2(e+f x)}}\\ \end{align*}
Mathematica [A] time = 4.75673, size = 350, normalized size = 1.87 \[ \frac{\frac{\csc ^4(e+f x) \sec (e+f x) \left (\left (-8 a^2+52 a b-60 b^2\right ) \cos (2 (e+f x))+(a-b) (3 (a-5 b) \cos (4 (e+f x))-11 a-45 b)\right )}{4 \sqrt{2} a^3 \sqrt{\sec ^2(e+f x) ((a-b) \cos (2 (e+f x))+a+b)}}-\frac{3 (a-5 b) (a-b) \cos (e+f x) \sec ^2\left (\frac{1}{2} (e+f x)\right ) \sqrt{\sec ^2(e+f x) ((a-b) \cos (2 (e+f x))+a+b)} \left (\tanh ^{-1}\left (\frac{a-(a-2 b) \tan ^2\left (\frac{1}{2} (e+f x)\right )}{\sqrt{a} \sqrt{a \left (\tan ^2\left (\frac{1}{2} (e+f x)\right )-1\right )^2+4 b \tan ^2\left (\frac{1}{2} (e+f x)\right )}}\right )+\tanh ^{-1}\left (\frac{a \left (\tan ^2\left (\frac{1}{2} (e+f x)\right )-1\right )+2 b}{\sqrt{a} \sqrt{a \left (\tan ^2\left (\frac{1}{2} (e+f x)\right )-1\right )^2+4 b \tan ^2\left (\frac{1}{2} (e+f x)\right )}}\right )\right )}{2 a^{7/2} \sqrt{\sec ^4\left (\frac{1}{2} (e+f x)\right ) ((a-b) \cos (2 (e+f x))+a+b)}}}{8 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.228, size = 10582, normalized size = 56.6 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 3.79066, size = 1656, normalized size = 8.86 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\csc \left (f x + e\right )^{5}}{{\left (b \tan \left (f x + e\right )^{2} + a\right )}^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]